#ifndef __GPIO_H
#define __GPIO_H

#define BUFS_DIRETION       1024
#define BUFS_VALUE          1024
#define BUFS_NUM            32
#define BUFS_TMP            1024


class gpio
{
public:
                                gpio(int num);
                               ~gpio();
                            int opendev();
                            int closedev();
                            int get_value();
                            int set_diretion(int dir);
                            int set_value(int levle);
private:
                            int mdiretion;
                            int mvalue;
                            int mnum;
                            int mfd;
                            int mfd_value;
                           char mbuffer_diretion[BUFS_DIRETION];
                           char mbuffer_value[BUFS_VALUE];
                           char mbuffer_num[BUFS_NUM];
                           char mbuffer_tmp[BUFS_TMP];
};

#endif // GPIO_H
